<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'customer.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="<%=basePath%>/css/biaoge.css"/>
<script type="text/javascript" src="jquery/js/jquery-1.8.2.js"></script>
<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
  </head>
  <script type="text/javascript">
  /* var c=$("#chakan");
  var go=$("#gong");
  var jub=$("#jubao"); */

 function fan(){
    window.location="showCustomer.action";
  }
   function cusdetail(id){
    window.location="cusdetail.action?uid="+id;
  }
  function chaxun(){
  var username=document.getElementById("uname").value;
     window.location="serchcustomer.action?uname="+username;
  }
  </script>
  <body> 
   
     <%--    您已登录,用户名为：${mana.managersName}<br/><br/> --%>
   <table>
   	<tr>
   	<td width="5%">
   	</td>
   	<td valign="top">
   
   	</td><td width="5%"></td>
   		<td valign="top">
   			<div style="width:750px; float:right;" id="chakan">
   			
      <font size="4" color="red" style="float:right; margin-top: 5px">${str}</font><input type="button" value="查询用户" onclick="chaxun()" style="float:right; margin-top: 5px"><input type="text" name="uname" id="uname" style="float:right; margin-top: 5px"><br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
    <font size="5" color="red">查询结果：</font><br><br>
    <table id="mytable" cellspacing="10">
  <tr >
  <td>用户名</td>  <td>注册邮箱</td>  <td>查看详细信息</td>  <td>删除用户</td></tr>
  <c:if test="${cus.userName!=null}">
   <tr><td>${cus.userName}</td>  <td>${cus.userMail}</td>  
   <td>
   <input type="button" value="查看详细信息" onclick="cusdetail(${cus.userId})">
   </td>  
   <td><input type="checkbox" name="${cus.userId}"> </td></tr>
   </c:if>
   </table>
  <br>
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  &nbsp;&nbsp;&nbsp;
  <input type="button"  value="确定删除用户"/><input type="button" onclick="fan()" value="返回"/>
                           </div>
   		</td>
   	</tr>
   	
   </table>
   
 
    
						
	
  </body>
</html>
